import 'package:animated_tree_view/animated_tree_view.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'logic.dart';

class CheckManagePage extends StatelessWidget {
  const CheckManagePage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    final logic = Get.find<CheckManageLogic>();
    return Scaffold(
      body: SafeArea(
        child: TreeView.simple(
            indentation: const Indentation(style: IndentStyle.squareJoint),
            tree: logic.sampleTree,
            builder: (context, node) {
              return Container(
                  width: double.infinity,
                  padding:
                      const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
                  child: Text(node.key));
            }),
      ),
    );
  }
}
